<?php
class Task extends AppModel {

	var $name = 'Task';
	//检验title是否为空
	var $validate = array(
		'title' => array('notempty')
	);

}
?>